package org.haredot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.haredot.entity.LoginLog;
import org.haredot.entity.ServiceLog;

import java.util.List;
import java.util.Map;

@Mapper
public interface LoggerMapper {

    /**
     * 插入 业务日志
     * @param serviceLog
     * @return
     */
    public int saveServiceLog(ServiceLog serviceLog) ;

    List<ServiceLog> findAll(Map<String,?> params);

    int saveLoginLog(LoginLog log);

    List<LoginLog> findLogsAll(Map<String,?> params);
}
